//
//  City.m
//  07 - MRCProvince
//
//  Created by 韩旭 on 16/7/12.
//  Copyright © 2016年 基础. All rights reserved.
//

#import "City.h"

@implementation City

- (instancetype)initWithName:(NSString *)name cityNumber:(NSString *)cityNumber {
    self = [super initWithName:name cityNumber:cityNumber];
    if (self) {
        _arrCity = [NSMutableArray array];
    }
    return self;
}
- (NSString *)description {
    if (self.cityNumber == nil) {
        return [NSString stringWithFormat:@"%@ : %@", self.name, _arrCity];
    } else {
        return [ NSString stringWithFormat:@"%@ : %@ - %@", self.name , self.cityNumber, _arrCity];
    }
}
@end
